package fun.ty13.feignClient;

import fun.ty13.domain.User;
import org.springframework.stereotype.Component;

/**
 * @author 桃缘十三
 * @date 2022/11/26 21:30
 */
@Component
public class UserFeignFallBack implements UserFeignClient {

    @Override
    public User get(Long id) {
        return new User(id,"网络异常");
    }
}
